<!--
 * @Description:
 * @Autor: 刘诗文
 * @Date: 2020-11-10 09:44:25
 * @LastEditors: 刘诗文
 * @LastEditTime: 2021-01-28 14:42:06
-->
<template>
  <div>
    <el-button size="small" type="primary" @click="synchronizeMemberInfo">同步会员信息</el-button>
    <div style="margin-bottom: 1rem;"></div>
    <FormPanel ref="formPanel" :list="formList" :cols="3" :labelWidth="130" :formType="type" :isSubmitBtn="false" />
    <!-- <ButtonArea :containerStyle="{ display: 'flex', justifyContent: 'center' }">
      <el-button type="primary" @click="cancelHandle">返 回</el-button>
    </ButtonArea> -->
  </div>
</template>
<script>
import { dictionary } from '@/utils/dictMixin';
export default {
  name: 'customerMemberInfo',
  mixins: [dictionary],
  props: {
    type: {
      type: String
    },
    formData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    this.selectedData = null;
    return {
      formList: this.createFromList()
    };
  },
  mounted() {},
  methods: {
    createFromList() {
      return [
        {
          type: 'BREAK_SPACE',
          label: '会员信息'
        },
        {
          type: 'INPUT',
          label: '会员号ID',
          fieldName: 'a1',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '会员姓名',
          fieldName: 'a2',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '会员电话',
          fieldName: 'a3',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '会员等级',
          fieldName: 'a4',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '会员创建时间',
          fieldName: 'a5',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '会员有效期',
          fieldName: 'a6',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '会员积分',
          fieldName: 'a7',
          disabled: true,
          initialValue: ''
        }
      ];
    },
    synchronizeMemberInfo() {},
    cancelHandle() {}
  }
};
</script>
<style lang="less" scoped></style>
